package org.example.cloud.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * feign基于ribbon实现，修改ribbon配置，即可改变feign
 */
@FeignClient(name = "payment",fallback = PaymentFeignFallback.class)
public interface PaymentFeign {

    @GetMapping("/payment")
    String payment();

    @GetMapping("/payment2/hytrix/ok")
    String payment2();

    @GetMapping("/zipkin")
    String zipkin();

    @GetMapping("/zipkin/timeout")
    String zipkinTimeout();
}
